package org.zecontech.extraplus.init;

import net.minecraft.resources.ResourceKey;
import net.minecraft.world.item.equipment.EquipmentAsset;
import net.minecraft.world.item.equipment.EquipmentAssets;
import org.zecontech.extraplus.util.Helpers;

/**
 * 装备资源
 */
public class ModEquipmentAssets {

    public static final ResourceKey<EquipmentAsset> RUBY = createId("ruby");
    public static final ResourceKey<EquipmentAsset> AMBER = createId("amber");
    public static final ResourceKey<EquipmentAsset> EMERALD = createId("emerald");
    public static final ResourceKey<EquipmentAsset> SILVER = createId("silver");

    /**
     * 创建资源ID
     * @param name 名字
     * @return 资源ID
     */
    private static ResourceKey<EquipmentAsset> createId(String name) {
        return ResourceKey.create(EquipmentAssets.ROOT_ID, Helpers.identifier(name));
    }
}
